package com.huawei.appgallery.search.ui.cardbean;

import com.huawei.appgallery.foundation.card.base.bean.BaseDistCardBean;
import com.huawei.appgallery.foundation.card.base.bean.KeywordInfo;
import java.util.List;
import o.CollectCheck;

public class HistorySearchCardBean extends BaseDistCardBean {
    private static final long serialVersionUID = -6554781885743674496L;
    private List<KeywordInfo> historyList;
    private int selectedIndex = -1;

    public List<KeywordInfo> ॱ() {
        return this.historyList;
    }

    public void ˎ(List<KeywordInfo> list) {
        this.historyList = list;
    }

    public void ᐝ(int i) {
        this.selectedIndex = i;
    }

    public String ˊ() {
        if (CollectCheck.isEmpty(this.historyList) || this.selectedIndex >= this.historyList.size()) {
            return "";
        }
        return ॱ().get(this.selectedIndex) == null ? "" : ((KeywordInfo) ॱ().get(this.selectedIndex)).ॱ();
    }

    public String ˋ() {
        return "searchhistorycard";
    }
}
